package cn.butcher.pojo;

/**
 * 课程表
 */
public class Course {
    /**
     * 课号
     */
    private int keId;
    /**
     * 课名
     */
    private String keName;
    /**
     * 授课老师
     */
    private Teacher teacher;

    public Course() {
    }

    public Course(int keId, String keName, Teacher teacher) {
        this.keId = keId;
        this.keName = keName;
        this.teacher = teacher;
    }

    public int getKeId() {
        return keId;
    }

    public void setKeId(int keId) {
        this.keId = keId;
    }

    public String getKeName() {
        return keName;
    }

    public void setKeName(String keName) {
        this.keName = keName;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Course{" +
                "keId=" + keId +
                ", keName='" + keName + '\'' +
                ", teacher=" + teacher +
                '}';
    }
}
